<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vendas - Pagamento Pedidos</title>
<script language="javascript" type="text/javascript" src="../../includes/js/jquery-1.4.4.js"></script>
<script language="javascript" type="text/javascript" src="../../javascript/inicial.js"></script>
<script language="javascript" type="text/javascript" src="../../javascript/vendas/popup_pagamento_pedido.js"></script>
<script language="javascript" type="text/javascript" src="../../includes/js/funcoes.js"></script> 

<script language="javascript" type="text/javascript">

function formpg_entrada(){
	
	if(document.form.fp_entrada.value == 2){
	   mostraDiv('cheque');	
	   escondeDiv('cartao');
	}else if(document.form.fp_entrada.value == 3 || document.form.fp_entrada.value == 4 ){
	   mostraDiv('cartao');	
	   escondeDiv('cheque');
	}else{
	   escondeDiv('cartao');
	   escondeDiv('cheque');
	}
	
}


function formpg_parcelas(){
	
	if(document.form.fp_parcelas.value == 2){
	   mostraDiv('chequep');	
	   escondeDiv('cartaop');
	}else if(document.form.fp_parcelas.value == 3 || document.form.fp_parcelas.value == 4 ){
	   mostraDiv('cartaop');	
	   escondeDiv('chequep');
	}else{
	   escondeDiv('cartaop');
	   escondeDiv('chequep');
	}
	
}

</script> 

</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<fieldset>
<legend>
<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
<b>Pagamento Pedido</b>
</font>
</legend>

<form action="#" method="post" name="form">
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td valign="middle" height="20" colspan="3">
    </td>
    </tr>

    <tr>
    <td width="31%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Nr. T&iacute;tulo:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="39%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Nr. Pedido:</strong> 
    </font>
    </td>
    <td width="30%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Valor:</strong> 
    </font>
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>

    <tr>
    <td width="31%" align="left">
    &nbsp;&nbsp;
    <input type="text" name="titulo"  size="15" title="Nr T&iacute;tulo" value="{titulo}" readonly="readonly" />
    </td>
    <td width="39%" align="left">
    &nbsp;&nbsp;
    <input type="text" name="pedido"  size="15" title="Nr Pedido" value="{pedido}" readonly="readonly" />
    </td>
    <td width="30%" align="left">
    &nbsp;&nbsp;
    <input type="text" name="valor"  size="15" title="Valor total do t&iacute;tulo" value="{valor}" readonly="readonly" />
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>

    <tr>
    <td width="31%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Valor entrada:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="39%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Forma Pg Entrada:</strong> 
    </font>
    </td>
    <td width="30%" align="left">&nbsp;
	
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>


    <tr>
    <td width="31%" align="left">
    &nbsp;&nbsp;
    <input type="text" name="entrada"  size="15" title="Valor para entrada" value="{entrada}"   onKeyPress="return(MascaraMoeda(this,'.',',',event))" />
    </td>
    <td width="39%" align="left">
    &nbsp;&nbsp;
    <select name="fp_entrada" size="1" onchange="formpg_entrada();">
	<!-- START BLOCK : FPENTRADA -->
    <option value="{id_form_ent}">{n_form_ent}</option>
    <!-- END BLOCK : FPENTRADA -->
    </select>
    
    </td>
    <td width="30%" align="left">&nbsp;
    
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>

    <tr>
    <td valign="middle" height="8" colspan="3">
    
	<div id="cartao" style=" width:100%; height:60px; display:none;" >
	<fieldset>
    <legend>
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Informa&ccedil;&otilde;es do Cart&atilde;o:</strong> 
    </font>
    </legend>

    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="31%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Bandeira:</strong> 
    </font>
    </td>
    <td width="39%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Banco:</strong> 
    </font>

    </td>
    <td width="30%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>N&uacute;mero:</strong> 
    </font>
    </td>
    </tr>


	<tr>
    <td colspan="5" height="6"></td>
    </tr>


    <tr>
    <td width="31%">
    <select name="bandeira" size="1">
    <option value="{id_bandeira}">{n_bandeira}</option>
	<!-- START BLOCK : BANDEIRAS -->
    <option value="{id_bandeira}">{n_bandeira}</option>
    <!-- END BLOCK : BANDEIRAS -->
    </select>
    </td>
    <td width="39%">&nbsp;
    <select name="bancoc" size="1">
    <option value="{id_banco1}">{n_banco1}</option>
	<!-- START BLOCK : BANCOS1 -->
    <option value="{id_banco1}">{n_banco1}</option>
    <!-- END BLOCK : BANCOS1 -->
    </select>
	
    </td>
    <td width="30%">
   	<input type="text" name="numero_cartao" size="15" title="Nr. do Cheque" value="{numero_cartao}" />
    </td>
    </tr>

    </table>
    
	</fieldset>
    </div>

	<br />
    
	<div id="cheque" style=" width:100%; height:60px; display:none;">
	<fieldset>
    <legend>
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Dados do Cheque:</strong> 
    </font>
    </legend>
    
    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="26%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Banco:</strong> 
    </font>
    </td>
    <td width="17%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Ag&ecirc;ncia:</strong> 
    </font>
    </td>
    <td width="20%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Conta:</strong> 
    </font>
    </td>
    <td width="20%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>N&uacute;mero:</strong> 
    </font>
    </td>
    <td width="17%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Data:</strong> 
    </font>
    </td>
    </tr>


	<tr>
    <td colspan="5" height="8"></td>
    </tr>


    <tr>
    <td width="26%">
    <select name="banco" size="1">
    <option value="{id_banco2}">{n_banco2}</option>
	<!-- START BLOCK : BANCOS2 -->
    <option value="{id_banco2}">{n_banco2}</option>
    <!-- END BLOCK : BANCOS2 -->
    </select>
    </td>
    <td width="17%">
	<input type="text" name="agencia" size="10" title="Agencia" value="{agencia}" />
    </td>
    <td width="20%">
	<input type="text" name="conta" size="15" title="Conta Corrente" value="{conta}" />
    </td>
    <td width="20%">
	<input type="text" name="numero" size="15" title="Nr. do Cheque" value="{numero}" />
    </td>
    <td width="17%">
	<input type="text" name="data_ck" size="10" title="Data do cheque" value="{data_ck}" />
    </td>
    </tr>

    </table>
    
	</fieldset>
    </div>

    <br />
    <br />
    
    </td>
    </tr>
 
    <tr>
    <td width="31%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Nr. Parcelas:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="39%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Forma Pg Parcelas:</strong> 
    </font>
    </td>
    <td width="30%" align="left">
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>


    <tr>
    <td width="31%" align="left">
    &nbsp;&nbsp;
    <select name="nrparcelas" size="1">
    <option value="0">--</option>
    <option value="1">01</option>
    <option value="2">02</option>
    <option value="3">03</option>
    <option value="4">04</option>
    <option value="5">05</option>
    <option value="6">06</option>
    </select>
    </td>
    <td width="39%" align="left">
    &nbsp;&nbsp;
    <select name="fp_parcelas" size="1" onchange="formpg_parcelas();">
	<!-- START BLOCK : FPPARCELA -->
    <option value="{id_form_par}">{n_form_par}</option>
    <!-- END BLOCK : FPPARCELA -->
    </select>
    </td>
    <td width="30%" align="left">
    &nbsp;&nbsp;
    {gera_parcelas}
    </td>
    </tr>
    
    <tr>
    <td valign="middle" height="8" colspan="3">
    </td>
    </tr>
 
     <tr>
    <td valign="middle" height="8" colspan="3">
    
	<div id="cartaop" style=" width:100%; height:60px; display:none;" >
	<fieldset>
    <legend>
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Informa&ccedil;&otilde;es do Cart&atilde;o:</strong> 
    </font>
    </legend>

    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="31%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Bandeira:</strong> 
    </font>
    </td>
    <td width="39%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Banco:</strong> 
    </font>

    </td>
    <td width="30%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>N&uacute;mero:</strong> 
    </font>
    </td>
    </tr>


	<tr>
    <td colspan="5" height="6"></td>
    </tr>


    <tr>
    <td width="31%">
    <select name="bandeirap" size="1">
    <option value="{id_bandeirap}">{n_bandeirap}</option>
	<!-- START BLOCK : BANDEIRASP -->
    <option value="{id_bandeirap}">{n_bandeirap}</option>
    <!-- END BLOCK : BANDEIRASP -->
    </select>
    </td>
    <td width="39%">&nbsp;
    <select name="bancocp" size="1">
    <option value="{id_banco1p}">{n_banco1p}</option>
	<!-- START BLOCK : BANCOS1P -->
    <option value="{id_banco1p}">{n_banco1p}</option>
    <!-- END BLOCK : BANCOS1P -->
    </select>
	
    </td>
    <td width="30%">
   	<input type="text" name="numero_cartaop" size="15" title="Nr. do Cheque" value="{numero_cartaop}" />
    </td>
    </tr>

    </table>
    
	</fieldset>
    </div>

	<br />
    
	<div id="chequep" style=" width:100%; height:60px; display:none;">
	<fieldset>
    <legend>
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Dados do Cheque:</strong> 
    </font>
    </legend>
    
    <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="26%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Banco:</strong> 
    </font>
    </td>
    <td width="17%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Ag&ecirc;ncia:</strong> 
    </font>
    </td>
    <td width="20%">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Conta:</strong> 
    </font>
    </td>
    <td width="20%" colspan="2">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>N&uacute;mero:</strong> 
    </font>
    </td>
    </tr>


	<tr>
    <td colspan="5" height="8"></td>
    </tr>


    <tr>
    <td width="26%">
    <select name="bancop" size="1">
    <option value="{id_banco2p}">{n_banco2p}</option>
	<!-- START BLOCK : BANCOS2P -->
    <option value="{id_banco2p}">{n_banco2p}</option>
    <!-- END BLOCK : BANCOS2P -->
    </select>
    </td>
    <td width="17%">
	<input type="text" name="agenciap" size="10" title="Agencia" value="{agenciap}" />
    </td>
    <td width="20%">
	<input type="text" name="contap" size="15" title="Conta Corrente" value="{contap}" />
    </td>
    <td width="20%" colspan="2">
	<input type="text" name="numerop" size="15" title="Nr. do Cheque" value="{numerop}" />
    </td>
    </tr>

    </table>
    
	</fieldset>
    </div>

    <br />
    <br />
    
    </td>
    </tr>
</table>    

</form>


</div>
</fieldset>

</body>
</html>
